package com.zhiteng.base.adapter.error;

import androidx.annotation.Nullable;

public class AdapterException extends RuntimeException {
    private Integer errorCode;
    private String message;

    public AdapterException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;

    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    @Nullable
    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
